import React from 'react'
import { HashRouter as Router, Route } from 'react-router-dom'
import Login from './Login'
import AdminIndex from './AdminIndex'

function Main() {
  return (
    <div>
      <Router>
        <Route path='/' exact component={Login} />
        <Route path='/index' component={AdminIndex} />
      </Router>
    </div>
  )
}

export default Main